package com.maliankeji.mybatisflexdemo.util;

import com.zaxxer.hikari.HikariDataSource;

public class EncryptHikariDatasource extends HikariDataSource {

    @Override
    public String getPassword() {
        String encPassword = super.getPassword();
        if (null == encPassword) return null;
        return Tools.decryptStr(encPassword, true);
    }
}
